package com.yanjr.modules.sys.entity;

import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Component;

import com.yanjr.common.Constants;
import com.yanjr.common.persistence.DataEntity;
import com.yanjr.common.persistence.Annotation.Column;
import com.yanjr.common.persistence.Annotation.Database;
import com.yanjr.common.persistence.Annotation.Table;


/**
 * @ClassName: Area 
 * @Description: TODO(区域Entity)
 * @author yanjr big123@126.com 
 * @date 2016年2月25日 下午5:18:20
 */
@Database("jeesite")
@Table("sys_area")
@Component
public class Area extends DataEntity<Area> {

	private static final long serialVersionUID = 8859127869150498228L;
	
	@Column("id")
	private String id;
	@Column("parent_id")
	private String parentId;// 父级编号id
	@Column("parent_ids")
	private String parentIds; // 所有父级编号
	@Column("code")
	private String code; 	// 区域编码
	@Column("name")
	private String name; 	// 区域名称
	@Column("type")
	private String type; 	// 区域类型（1：国家；2：省份、直辖市；3：地市；4：区县）
	@Column("create_by")
	private String createBy;
	@Column("create_date")
	private Date createDate;
	@Column("update_by")
	private String updateBy;
	@Column("update_date")
	private Date updateDate;
	@Column("remarks")
	private String remarks;
	@Column("del_flag")
	private String delFlag = Constants.DEL_FLAG_NORMAL;

	private List<String> strList;
	private Dict dict;
	
	public Area(){
		super();
	}
	
	public Area(String id){
		this();
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getParentIds() {
		return parentIds;
	}

	public void setParentIds(String parentIds) {
		this.parentIds = parentIds;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	@Override
	public String toString() {
		return "Area [id=" + id + ", parentId=" + parentId + ", parentIds="
				+ parentIds + ", code=" + code + ", name=" + name + ", type="
				+ type + ", createBy=" + createBy + ", createDate="
				+ createDate + ", updateBy=" + updateBy + ", updateDate="
				+ updateDate + ", remarks=" + remarks + ", delFlag=" + delFlag
				+ "]";
	}

	public List<String> getStrList() {
		return strList;
	}

	public void setStrList(List<String> strList) {
		this.strList = strList;
	}

	public Dict getDict() {
		return dict;
	}

	public void setDict(Dict dict) {
		this.dict = dict;
	}

	
	
	
}